<template>
	<view class="news-list">
		<view class="search">
			<input type="text" @focus="handelGoToSearch" placeholder-style="text-indent: 20rpx;"  />
		</view>
	</view>
</template>

<script>
	export default{
		props:['newslist'],
		// filters:{
		// 	formatDate(date){
		// 		const uDate = new Date(date);
		// 		const year = uDate.getFullYear();
		// 		const month = uDate.getMonth().toString().padStart(2,0);
		// 		const day = uDate.getDay().toString().padStart(2,0);
		// 		return year + "-" + month + "-" + day;
		// 	}
		// },
		methods:{
			navToNewsDetail(id){
				uni.navigateTo({
					url:'/pages/news-detail/news-detail?id=' + id
				})
			},
			handelGoToSearch(){
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.news-list{
		.search{
			background-color: #B50E03;
			padding: 20rpx 0;
			input{
				width: 95%;
				height: 60rpx;
				border-radius: 15rpx;
				border: 1rpx solid #fff;
				outline: 0;
				background-color: #FFFFFF;
				margin: 0 auto;
			}
		}
	}
</style>
